import { defHttp } from "@/utils/http";
import { baseUrlApi } from "./utils";

/** 生产计划列表详情 */
export const getProducePlanPageList = <T>(data?: object) => {
  return defHttp.post<T>({
    url: baseUrlApi("/producePlan/pagelist"),
    data
  });
};
/** 查询生产计划单号列表 */
export const getProducePlanList = <T>(data?: object) => {
  return defHttp.post<T>({
    url: baseUrlApi("/producePlan/list"),
    data
  });
};
/** 生产计划详情 */
export const getProducePlanDetail = <T>(data?: object) => {
  return defHttp.post<T>({
    url: baseUrlApi("/producePlan/detail"),
    data
  });
};
/** 根据计划编码调减查询生产计划列表详情 */
export const getProducePlanQueryDetailByCode = <T>(data?: object) => {
  return defHttp.post<T>({
    url: baseUrlApi("/producePlan/queryDetailByCode"),
    data
  });
};
/** 生产计划详情列表带分页 */
export const getProducePlanDetailPageList = <T>(data?: object) => {
  return defHttp.post<T>({
    url: baseUrlApi("/producePlan/detail/pagelist"),
    data
  });
};
/** 生产计划详情批量转换采购计划 */
export const getProducePlanDetailBatchConvertPurchase = <T>(data?: object) => {
  return defHttp.post<T>({
    url: baseUrlApi("/producePlan/detail/batchConvertPurchase"),
    data
  });
};